package com.situ.mall.common.mapper;

import com.situ.mall.common.entity.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author membergpf
 * @since 2023-03-18
 */
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {
    @Select("select max(code) from order_info where instr(code, #{pre})=1")
    String selectMaxCode(String pre);
}
